package com.qf.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.TenderInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TenderInformationMapper extends BaseMapper<TenderInformation> {

    /**
     * 获取所有ID（避免加载大字段）
     */
    @Select("SELECT id FROM tender_information")
    List<Integer> getAllIds();  // 改为 List<Integer>

    /**
     * 按ID查询内容字段
     */
    @Select("SELECT business_content_text FROM tender_information WHERE id = #{id}")
    String getContentById(@Param("id") Integer id);  // 参数改为 Integer
}
